#include <unistd.h>
#include <sys/types.h>
#include <stdio.h>

int main(int argc,char* argv[])
{
    printf("获取当前进程ID:%u\n",getpid());
    int pid = fork();
    printf("被创建的进程ID：%u\n",pid);
    return 0;
}
